package com.bitter.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "STORAGE-SERVER")
public interface StorageFeginApi {

	/**
	 * 更新库存
	 * 
	 * @param productId
	 * @param count
	 * @return
	 */
	@GetMapping(value = "/storage/decrease")
	String decrease(@RequestParam("productId") Long productId, @RequestParam("total") Integer total);
}
